@extends('layouts.admin')

@section('content')

<style type="text/css">
.delegate{margin:10px;}
</style>
<div class="page-content">
    <div class="page-header">
        <h1>增加用户</h1>
    </div>
    <div class="row">
        <div class="col-xs-12">
                                <!-- PAGE CONTENT BEGINS -->
            <form id="setting-form" name="twowayform" class="form-horizontal" method="POST" action="/admin/user/add">
                {{ csrf_field() }}
                <div class="space-4"></div>
                <div class="form-group">
                    <label class="col-sm-3 control-label no-padding-right" for="form-input-readonly"> 用户类型 </label>
                    <div class="col-sm-9">
                        <select class="form-control col-xs-10 col-sm-5" id="form-field-select-1" name="role">
                            <option value="2">老师</option>
                        </select>
                    </div>
                </div>

                <div class="space-4"></div>
                <div class="form-group">
                    <label class="col-sm-3 control-label no-padding-right" for="form-input-readonly"> 姓名 </label>
                    <div class="col-sm-9">
                        <input type="text" class="col-xs-10 col-sm-5" name="name" id="form-input-readonly" value="" />
                    </div>
                </div>

                <div class="space-4"></div>
                <div class="form-group">
                    <label class="col-sm-3 control-label no-padding-right" for="form-input-readonly"> 工号 </label>
                    <div class="col-sm-9">
                        <input type="text" class="col-xs-10 col-sm-5" name="username" id="form-input-readonly" value="" />
                    </div>
                </div>

                <div class="space-4"></div>
                <div class="form-group">
                    <label class="col-sm-3 control-label no-padding-right" for="form-field-1"> 专业 </label>
                    <div class="col-sm-9">
                        <input type="text" name="major" class="col-xs-10 col-sm-5" value=""/>
                    </div>
                </div>

                <div class="space-4"></div>
                <div class="form-group">
                    <label class="col-sm-3 control-label no-padding-right" for="form-field-1"> 职务 </label>
                    <div class="col-sm-9">
                        <input type="text" name="job"  class="col-xs-10 col-sm-5" value=""/>
                    </div>
                </div>

                <div class="space-4"></div>
                <div class="form-group">
                    <label class="col-sm-3 control-label no-padding-right" for="form-field-2"> 职称 </label>
                    <div class="col-sm-9">
                        <input type="text" name="title" class="col-xs-10 col-sm-5" value=""/>
                    </div>
                </div>

                <div class="space-4"></div>
                <div class="form-group">
                    <label class="col-sm-3 control-label no-padding-right" for="form-field-2"> 指导学生限额 </label>
                    <div class="col-sm-9">
                        <input type="text" name="quota" class="col-xs-10 col-sm-5" value=""/>
                    </div>
                </div>

                <div class="space-4"></div>
                <div class="form-group">
                    <label class="col-sm-3 control-label no-padding-right" for="form-field-2"> 手机号码 </label>
                    <div class="col-sm-9">
                        <input type="text" name="phone" class="col-xs-10 col-sm-5" value=""/>
                    </div>
                </div>

                <div class="space-4"></div>
                <div class="form-group">
                    <label class="col-sm-3 control-label no-padding-right" for="form-field-2"> 邮箱 </label>
                    <div class="col-sm-9">
                        <input type="text" name="email" class="col-xs-10 col-sm-5" value=""/>
                    </div>
                </div>


                @if (count($errors) > 0)
                <div class="alert alert-danger">
                    <ul>
                        @foreach ($errors->all() as $error)
                            <li>{{ $error }}</li>
                        @endforeach
                    </ul>
                </div>
                @endif
                <div class="clearfix form-actions">
                    <div class="col-md-offset-3 col-md-9">
                        <button class="btn btn-info" type="button" onclick="event.preventDefault(); document.getElementById('setting-form').submit();">
                            <i class="icon-ok bigger-110"></i>
                            Submit
                        </button>
                    </div>
                </div>
            </form>
        </div>
    </div>

</div>

<script type="text/javascript">
</script>

@endsection
